+2005-10-12 Matthias Clasen <mclasen@redhat.com>
+
+ * gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Only call
+ gdk_pixbuf_loader_eat_header_write() when count > 0. (#318589,
+ Bogdan Nicula)
+
2005-10-03 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
/* we expect it's not to be closed */
g_return_val_if_fail (priv->closed == FALSE, FALSE);
- if (priv->image_module == NULL)
+ if (count > 0 && priv->image_module == NULL)
{
gint eaten;
/* we expect it's not closed */
g_return_val_if_fail (priv->closed == FALSE, TRUE);
- /* We have less the 128 bytes in the image. Flush it, and keep going. */
+ /* We have less the LOADER_HEADER_SIZE bytes in the image.
+ * Flush it, and keep going.
+ */
if (priv->image_module == NULL)
{
GError *tmp = NULL;